package com.legna.mhxy.support.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper=false)
@TableName("t_user_ring")
public class UserRing {

    @TableId
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 环类型id
     */
    private Long typeId;

    /**
     * 环数量
     */
    private Integer ringCount;

    public UserRing(){}
    public UserRing(Long typeId, Long userId, Double ringCount) {
        this.typeId = typeId;
        this.userId = userId;
        this.ringCount = ringCount.intValue();
    }
}
